package com.lpx.utils;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


@Configuration
public class WebMvcConfigurer extends WebMvcConfigurerAdapter {
 
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
    //Linux
    	//registry.addResourceHandler("/wenjianming/**").addResourceLocations("file:/home/wenjianming/");
    //Windows
        registry.addResourceHandler("/wenjianming/**").addResourceLocations("file:C:\\wenjianming\\");
        
    }
}

